﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.Client.Interface;
using PPI.Client.Logic;
using PPI.Entities.Kml;

namespace PPI.Client.Presenter
{
    public class ManageKmlPresenter
    {
        private IManageKml m_view;

        public ManageKmlPresenter(IManageKml view)
        {
            m_view = view;
        }

        public bool Validate()
        {
            return true;
        }

        public void Save()
        {

            m_view.KmlEntity.SettingText = LCustomKml.ParseKml(m_view.KmlText);
            LCustomKml.UpdateSetting(m_view.KmlEntity);
        }
    }
}
